package com.ruoyi.myplayer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.myplayer.mapper.PlayerDailyItemMapper;
import com.ruoyi.myplayer.domain.PlayerDailyItem;
import com.ruoyi.myplayer.service.IPlayerDailyItemService;

/**
 * 每日推荐歌单列Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-07
 */
@Service
public class PlayerDailyItemServiceImpl implements IPlayerDailyItemService 
{
    @Autowired
    private PlayerDailyItemMapper playerDailyItemMapper;

    /**
     * 查询每日推荐歌单列
     * 
     * @param id 每日推荐歌单列主键
     * @return 每日推荐歌单列
     */
    @Override
    public PlayerDailyItem selectPlayerDailyItemById(Long id)
    {
        return playerDailyItemMapper.selectPlayerDailyItemById(id);
    }

    /**
     * 查询每日推荐歌单列列表
     * 
     * @param playerDailyItem 每日推荐歌单列
     * @return 每日推荐歌单列
     */
    @Override
    public List<PlayerDailyItem> selectPlayerDailyItemList(PlayerDailyItem playerDailyItem)
    {
        return playerDailyItemMapper.selectPlayerDailyItemList(playerDailyItem);
    }

    /**
     * 新增每日推荐歌单列
     * 
     * @param playerDailyItem 每日推荐歌单列
     * @return 结果
     */
    @Override
    public int insertPlayerDailyItem(PlayerDailyItem playerDailyItem)
    {
        return playerDailyItemMapper.insertPlayerDailyItem(playerDailyItem);
    }

    /**
     * 修改每日推荐歌单列
     * 
     * @param playerDailyItem 每日推荐歌单列
     * @return 结果
     */
    @Override
    public int updatePlayerDailyItem(PlayerDailyItem playerDailyItem)
    {
        return playerDailyItemMapper.updatePlayerDailyItem(playerDailyItem);
    }

    /**
     * 批量删除每日推荐歌单列
     * 
     * @param ids 需要删除的每日推荐歌单列主键
     * @return 结果
     */
    @Override
    public int deletePlayerDailyItemByIds(Long[] ids)
    {
        return playerDailyItemMapper.deletePlayerDailyItemByIds(ids);
    }

    /**
     * 删除每日推荐歌单列信息
     * 
     * @param id 每日推荐歌单列主键
     * @return 结果
     */
    @Override
    public int deletePlayerDailyItemById(Long id)
    {
        return playerDailyItemMapper.deletePlayerDailyItemById(id);
    }
}
